﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace studentManagementSystemModels
{
    [Serializable]
    public class stu
    {
        /// <summary>
        /// 学生序号（非学号）
        /// </summary>
        private int stunum = 0;
        /// <summary>
        /// 学号 也作为登录账号
        /// </summary>
        private int stuid;
        /// <summary>
        /// 姓名
        /// </summary>
        private string stuname;
        /// <summary>
        /// 性别
        /// </summary>
        private string stusex;
        /// <summary>
        /// 年级
        /// </summary>
        private string stugrade;
        /// <summary>
        /// 专业
        /// </summary>
        private string stumajor;
        /// <summary>
        /// 登录密码
        /// </summary>
        private string stupassword;
        /// <summary>
        /// 身份识别
        /// </summary>
        private string role = "学生";

        //public int Stunum { get => stunum; set => stunum = value; }
        public int Stuid { get => stuid; set => stuid = value; }
        public string Stuname { get => stuname; set => stuname = value; }
        public string Stusex { get => stusex; set => stusex = value; }
        public string Stugrade { get => stugrade; set => stugrade = value; }
        public string Stumajor { get => stumajor; set => stumajor = value; }
        public string Stupassword { get => stupassword; set => stupassword = value; }
        public string Role { get => role; set => role = value; }
    }
}
